<?php
$this->load->view ( "static/header" );
$this->load->view ( "static/sidebar" ); 
             if ($data){
                        $loopObj = array ();
						$pageEnable = FALSE;
						if (is_array ( $data )) {
							$loopObj = $data;
						} else {
							$loopObj = $data->getData ();
							$pageEnable = TRUE;
						}
?>
        <div class="right_col">
        
         <?php if ($pageEnable){
         	      $loopNum = 0; 
         	      $num = count ( $loopObj );
         	      if($num==0){
         	      	print "<div class='show_type'><h2>this folder is empty!</h2></div>";
         	      }else {
         	         print "<div class='show_type'>";
                     foreach ( $loopObj as $key => $displayItem ) {
                  	    if($loopNum%4==0&&$loopNum!=0)print "</div><div class='show_type'>";
              	        print "<a href='" . $displayItem->getUrl () . "' ><img alt='". $displayItem->getDesc () ."' title='" . $displayItem->getName () . "' src='" . $displayItem->getThumbImage () . "'><span class='name'>" . $displayItem->getName () . "</span></a>";
                        $loopNum++;
                     }
                      print "</div>";
         	          print "<div class='manu'>".$data->getPageLinks()."</div>";
         	      }
             }else {
             	?>
             	<div class="pic_slogan">
            	   <img src="<?=base_url()?>resources/images/folderThu/<?php print $vo->getCpyPhoto();?>" class="pic" />
                   <span> <?php print $vo->getCpyName();?> </span>		
                </div>
                <div class="show_case">
             	<?php 
             	  $num = count ( $loopObj );
         	      if($num==0){
         	      	print "<div class='show_type'><h2>this folder is empty!</h2></div>";
         	      }else {
                     foreach ( $loopObj as $key => $displayItem ) {
              	        print "<a href='" . $displayItem->getUrl () . "' ><img alt='". $displayItem->getDesc () ."' title='" . $displayItem->getName () . "' src='" . $displayItem->getThumbImage () . "'><span class='name'>" . $displayItem->getName () . "</span></a>";
                     }
         	      }
                  ?>
                 </div>
          <?php }
              }else 
               print "this folder is empty!";
                ?>
        </div>
<?php
$this->load->view ( "static/footer" );
?>
            
